package mya.mes.mdc.model.mqtt;

import mya.common.model.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 处理接收的MQTT消息不成功的报错记录
 */
@Entity
@Table(name = "MDC_MQTT_READ_ERROR")
public class MdcMqttReadError extends BaseEntity {

    public Long mqttMsgId;

    public Long deviceTime;

    @Column(length = 64)
    public String mqttTopic;

    @Column(length = 2000)
    public String mqttContent;

    /**
     * 报错信息
     */
    public String errorMsg;

    /**
     * Throwable的信息
     */
    @Column(length = 2000)
    public String stackTrace;


    public Long getMqttMsgId() {
        return mqttMsgId;
    }

    public void setMqttMsgId(Long mqttMsgId) {
        this.mqttMsgId = mqttMsgId;
    }

    public Long getDeviceTime() {
        return deviceTime;
    }

    public void setDeviceTime(Long deviceTime) {
        this.deviceTime = deviceTime;
    }

    public String getMqttTopic() {
        return mqttTopic;
    }

    public void setMqttTopic(String mqttTopic) {
        this.mqttTopic = mqttTopic;
    }

    public String getMqttContent() {
        return mqttContent;
    }

    public void setMqttContent(String mqttContent) {
        this.mqttContent = mqttContent;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getStackTrace() {
        return stackTrace;
    }

    public void setStackTrace(String stackTrace) {
        this.stackTrace = stackTrace;
    }
}
